<page-header [autoTitle]="false"></page-header>
<nz-card>
  <section class="search-section">
    <input nz-input placeholder="微信昵称" [(ngModel)]="keyword" class="search-item"/>
    <button nz-button [nzType]="'primary'" nzGhost (click)="search()"  class="search-item">
      <i class="anticon anticon-search"></i><span>搜索</span>
    </button>
  </section>
  <nz-table #nzTable [nzData]="page.content"
            [nzPageSize]="page.size"
            [nzTotal]="page.totalElements"
            [nzFrontPagination]="false"
            [(nzPageIndex)]="page.number"
            (nzPageIndexChange)="changePageNo($event)"
            [nzLoading]="isLoading">
    <thead>
    <tr>
      <th nz-th><span>序号</span></th>
      <th nz-th><span>微信昵称</span></th>
      <!--<th nz-th><span>电话</span></th>-->
      <th nz-th><span>访问页面</span></th>
      <th nz-th><span>停留时间</span></th>
      <th nz-th><span>IP地址</span></th>
      <th nz-th><span>访问时间</span></th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of nzTable.data;let i=index">
      <td>
        {{i+1}}
      </td>
      <td>{{data.name}}<span *ngIf="!data.name">未知</span></td>
      <!--<td>{{data.phone}}<span *ngIf="!data.phone">未知</span></td>-->
      <td>{{data.pageName}}</td>
      <td>{{data.browseTime|longDatePipe}}</td>
      <td>{{data.ipAddr}}</td>
      <td>{{data.saveDate}}</td>
    </tr>
    </tbody>
  </nz-table>
</nz-card>
